package com.icss.train_sys_back.entity;

/**
 * @author wk
 * @desc
 * @date 2025/9/11 10:08
 */
public enum ResultEnum {
    SUCCESS(200, "成功"),

    FAIL(500, "失败"),
    LOGIN_NAME_ERROR(5001, "用户名错误"),
    LOGIN_PWD_ERROR(5002, "密码错误"),
    LOGIN_NAME_PWD_ERROR(5003, "用户名或密码错误"),
    START_END_STATION_ERROR(5004, "始发站和终点站不能相同！"),
    PARAM_ERROR(5005, "请求数据不能为空"),
    ORDER_NOT_FOUND(5006, "未查询到订单！"),
    TICKET_NUMBER_ERROR(5007, "车票不足"),
    REPEAT_BUY(5008, "重复购票"),
    FIND_USER_ERROR(5009, "未找到该用户！请先注册"),
    NOT_FACE_REGISTER(5010, "用户还未进行人脸注册! 请稍后在个人中心进行人脸信息录入");

    private int code;
    private String message;

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
